@import "flexhack";
@mixin memberChatView() {
    overflow: hidden;
    .level1 {
        width: 200px;
        margin: 0 auto;
        padding: 8px;
        background: #faf7fa;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        position: relative;
        z-index: $zindexMin;
        &:before {
            display: block;
            content: ' ';
            width: 1px;
            height: 60px;
            background: #a0a0a0;
            position: absolute;
            z-index: $zindexMin;
            bottom: -60px;
            left: 50%;
        }
        img {
            float: left;
            width: 70px;
            height: 70px;
            border-radius: 100%;
        }
        .member-info {
            padding: 0 0 0 80px;

            h2 {
                font-size: 13px;
                font-weight: bold;
                &.name-zh {
                    margin-top: 10px;
                }
            }
            p {
                width: 130px;
                -webkit-transform: scale(0.8);
                -moz-transform: scale(0.8);
                -ms-transform: scale(0.8);
                -o-transform: scale(0.8);
                transform: scale(0.8);
                transform-origin: 0;
                font-size: 12px;
                line-height: 1.2;
                position: absolute;
                z-index: $zindexMin;
                left: 88px;
                bottom: 8px;
                padding: 0 8px 0 0;
            }
        }
    }

    .level2-box {
        @include flexBoxHack();
        position: relative;
        z-index: $zindexMin;
        margin-top: 60px;
        &:before {
            display: block;
            content: ' ';
            width: 100%;
            height: 1px;
            background: #a0a0a0;
            @extend .hideFont;
            position: absolute;
            z-index: $zindexMin;
            left: 50%;
            -webkit-transform: translateX(-50%);
            -moz-transform: translateX(-50%);
            -ms-transform: translateX(-50%);
            -o-transform: translateX(-50%);
            transform: translateX(-50%);
        }
        .columns {
            @include flexItemHack();

            &:first-child {
                .level2 {
                    &:before {
                        width: 1000px;
                        background: #ffffff;
                        border-right: 1px solid #a0a0a0;
                        left: auto;
                        right: 50%;
                    }
                }
            }

            &:last-child {
                .level2 {
                    &:before {
                        width: 1000px;
                        background: #ffffff;
                        border-left: 1px solid #a0a0a0;
                        left: 50%;
                    }
                }
            }

            .level2 {
                -webkit-box-sizing: border-box;
                -moz-box-sizing: border-box;
                box-sizing: border-box;
                padding: 10px;
                background: #faf7fa;
                margin: 100px auto 0;
                position: relative;
                z-index: $zindexMin;
                &:before {
                    display: block;
                    content: ' ';
                    position: absolute;
                    z-index: $zindexMin;
                    top: -100px;
                    left: 50%;
                    width: 1px;
                    height: 100px;
                    background: #a0a0a0;
                }

                &.type1 {
                    width: 120px;
                    img {
                        display: block;
                        width: 100px;
                        height: 100px;
                        border-radius: 100%;
                    }
                    h2 {
                        white-space: nowrap;
                        font-size: 13px;
                        font-weight: bold;
                        margin-top: 10px;
                        &.name-zh {

                            margin-bottom: 10px;
                        }
                    }
                    p {
                        width: 130px;
                        -webkit-transform: scale(0.8);
                        -moz-transform: scale(0.8);
                        -ms-transform: scale(0.8);
                        -o-transform: scale(0.8);
                        transform: scale(0.8);
                        transform-origin: 0;
                        font-size: 12px;
                        line-height: 1.2;
                        padding: 0 8px 0 0;
                    }
                }
                &.type2 {
                    width: 160px;
                    font-size: 18px;
                    font-weight: bold;
                    height: 36px;
                    text-align: center;
                }
            }

            .level3 {
                -webkit-box-sizing: border-box;
                -moz-box-sizing: border-box;
                box-sizing: border-box;
                width: 120px;
                padding: 10px;
                background: #faf7fa;
                margin: 20px auto 0;
                -webkit-transform: translateX(20px);
                -moz-transform: translateX(20px);
                -ms-transform: translateX(20px);
                -o-transform: translateX(20px);
                transform: translateX(20px);
                position: relative;
                z-index: $zindexMin;
                &:before {
                    display: block;
                    content: ' ';
                    width: 20px;
                    height: 100%;
                    position: absolute;
                    z-index: $zindexMin;
                    left: -20px;
                    top: 0;
                    border-left: 1px solid #a0a0a0;
                }
                &:after {
                    display: block;
                    content: ' ';
                    width: 20px;
                    height: 50%;
                    @extend .hideFont;
                    position: absolute;
                    z-index: $zindexMin;
                    top: -20px;
                    left: -20px;
                    border-bottom: 1px solid #a0a0a0;
                    border-left: 1px solid #a0a0a0;
                }
                &:last-child {
                    &:before {
                        display: none;
                    }
                    &:after {

                    }
                }
                img {
                    display: block;
                    width: 100px;
                    height: 100px;
                    border-radius: 100%;
                }
                h2 {
                    white-space: nowrap;
                    font-size: 13px;
                    font-weight: bold;
                    margin-top: 10px;
                    &.name-zh {

                        margin-bottom: 10px;
                    }
                }
                p {
                    width: 130px;
                    -webkit-transform: scale(0.8);
                    -moz-transform: scale(0.8);
                    -ms-transform: scale(0.8);
                    -o-transform: scale(0.8);
                    transform: scale(0.8);
                    transform-origin: 0;
                    font-size: 12px;
                    line-height: 1.2;
                    padding: 0 8px 0 0;
                }
            }

            .other{
                .level4 {
                    -webkit-box-sizing: border-box;
                    -moz-box-sizing: border-box;
                    box-sizing: border-box;
                    width: 120px;
                    padding: 10px;
                    background: #faf7fa;
                    margin: 20px auto 0;
                    -webkit-transform: translateX(60px);
                    -moz-transform: translateX(60px);
                    -ms-transform: translateX(60px);
                    -o-transform: translateX(60px);
                    transform: translateX(60px);
                    position: relative;
                    z-index: $zindexMin;
                    &:before {
                        display: block;
                        content: ' ';
                        width: 20px;
                        height: 100%;
                        position: absolute;
                        z-index: $zindexMin;
                        left: -20px;
                        top: 0;
                        border-left: 1px solid #a0a0a0;
                    }
                    &:after {
                        display: block;
                        content: ' ';
                        width: 20px;
                        height: 50%;
                        @extend .hideFont;
                        position: absolute;
                        z-index: $zindexMin;
                        top: -20px;
                        left: -20px;
                        border-bottom: 1px solid #a0a0a0;
                        border-left: 1px solid #a0a0a0;
                    }
                    &:last-child {
                        &:before {
                            display: none;
                        }
                        &:after {

                        }
                    }
                    img {
                        display: block;
                        width: 100px;
                        height: 100px;
                        border-radius: 100%;
                    }
                    h2 {
                        white-space: nowrap;
                        font-size: 13px;
                        font-weight: bold;
                        margin-top: 10px;
                        &.name-zh {

                            margin-bottom: 10px;
                        }
                    }
                    p {
                        width: 130px;
                        -webkit-transform: scale(0.8);
                        -moz-transform: scale(0.8);
                        -ms-transform: scale(0.8);
                        -o-transform: scale(0.8);
                        transform: scale(0.8);
                        transform-origin: 0;
                        font-size: 12px;
                        line-height: 1.2;
                        padding: 0 8px 0 0;
                    }
                }
            }
        }
    }
}